<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ include file="/jsp/common/index.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
    <title>角色设置</title>
		<%@ include file="/jsp/common/js.jsp"%>
		<%@ include file="/jsp/common/css.jsp"%>
		<base target="_self">
		<script language="javascript">
		<!--
		   function dataInsertOrUpdate()
		   {
		   
		       g("form").submit();
		   }
		-->
		</script>
	</head>

	<body class="cbody">
		<%@ include file="/jsp/page/pagehead.jsp"%>
		<br/>
		<s:form id="form"  action="saveRole" theme="simple">  
		<s:hidden name="vo.id" id="vo.id"></s:hidden>
		<table width="90%" border="0" cellpadding="0" cellspacing="0" class="inputarea" align="center">
		<thead>
		    <tr class="detailrow">
		       <td class="tleft" colspan="3">&nbsp;角色设置</td>
		    </tr>
		</thead>
		
			<s:iterator value="roleRefList" status="st">
		   <tr class="detailrow">
				<td class="tright" width="30%">
					<input type="checkbox" <s:if test='selected == "1"'>checked="checked"</s:if> name="roleList[<s:property value="#st.getIndex()"/>].id" id="roleList[<s:property value="#st.getIndex()"/>].id" value="<s:property value="roleId"/>">
					<s:property value="roleName"/>
				</td>
			</tr>
			</s:iterator>

			<tr>
			    <td>
			       &nbsp;
			    </td>
				<td class="tcenter">
					<input type="button" class="wbt" value="保存" id="UpdateButton" onclick="dataInsertOrUpdate();"/>
					&nbsp;&nbsp;
					<input type="button" class="wbt" value="列表" id="listButton" onclick="window.location='beforeSelect.htm';"/>
				</td>
				<td>
				   &nbsp;
				</td>
			</tr>

            <tr>
				<td cospan="3" class="tcenter">
					&nbsp;
				</td>
			</tr>
 
		</table>
        </s:form>



		<%@ include file="/jsp/page/foot.jsp"%>
	</body>
</html>

